/**
 * 
 */
package com.swfee.qinben.dto.active;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author ddr
 * 
 */
public class ScheduleModel implements Parcelable {
	
	private Integer id;
	private String startTime;
	private String endTime;
	private String title;
	private Integer status;
	private Integer familyId = 15;
	
	public ScheduleModel(){
		
	}
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getStartTime() {
		return startTime;
	}
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	public String getEndTime() {
		return endTime;
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public ScheduleModel(Integer id, String startTime, String endTime,
			String title) {
		super();
		this.id = id;
		this.startTime = startTime;
		this.endTime = endTime;
		this.title = title;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	@Override
	public int describeContents() {
		return 0;
	}
	
	
	public Integer getFamilyId() {
		return familyId;
	}

	public void setFamilyId(Integer familyId) {
		this.familyId = familyId;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(id);
		dest.writeString(startTime);
		dest.writeString(endTime);
		dest.writeString(title);
		dest.writeInt(status);
		dest.writeInt(familyId);
	}
	
	  public  static final  Parcelable.Creator<ScheduleModel> CREATOR = new Parcelable.Creator<ScheduleModel>() {   
			//重写Creator
			  
			        @Override  
			        public ScheduleModel createFromParcel(Parcel source) {   
			        	ScheduleModel m = new ScheduleModel();   
			            m.id=source.readInt();  
			            m.startTime=source.readString();   
			            m.endTime=source.readString();   
			            m.title=source.readString();   
			            m.status=source.readInt();  
			            m.familyId=source.readInt();  
			            
			            return m;   
			        }   

			        public ScheduleModel[] newArray(int size) {   
			        	return new ScheduleModel[size];      
			        } 
		  };
	
	
 }
 